package generics.selfreferential;

import com.sun.istack.internal.NotNull;
import generics.selfreferential.entity.User;

public class Main {
    public static void main(String[] args) {
        LambdaQueryWrapper<User> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(true, user -> user.getName(), 1);
        lambdaQueryWrapper.eq(true, User::getName, 1);
        System.out.println("chenggong");

    }

    public static void updateUser(@NotNull String username, @NotNull String password) {
        if (username == null) {
            System.out.println("Username is not provided");
        } else {
            System.out.println("Updating user: " + username);
        }
    }

}
